package com.skyable.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.skyable.auth.entity.SysPermission;
import com.skyable.common.common.ServiceResult;

import java.util.List;

/**
 * @author GaoYuan
 * @title: IPermissionService
 * @projectName spring-cloud-demo
 * @description: TODO
 * @date 2021/4/613:08
 */
public interface IPermissionService extends IService<SysPermission> {

    /**
     * 获取权限列表
     * @return
     */
    ServiceResult<List<SysPermission>> findPermissionList();

    /**
     * 根据用户名查询用户权限
     * @param userName
     * @return
     */
    ServiceResult<List<SysPermission>> findPermissionByUserName(String userName);

}
